Optimal. Leaf size=150 \[ -\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}+\frac {6}{5} b c^5 d^3 \log (x)-\frac {6}{5} b c^5 d^3 \log (c x+i)+\frac {5 i b c^4 d^3}{4 x}+\frac {3 b c^3 d^3}{5 x^2}-\frac {i b c^2 d^3}{4 x^3}-\frac {b c d^3}{20 x^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 150, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {45, 37, 4872, 12, 148} \[ \frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}-\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {3 b c^3 d^3}{5 x^2}-\frac {i b c^2 d^3}{4 x^3}+\frac {5 i b c^4 d^3}{4 x}+\frac {6}{5} b c^5 d^3 \log (x)-\frac {6}{5} b c^5 d^3 \log (c x+i)-\frac {b c d^3}{20 x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 45
Rule 148
Rule 4872
Rubi steps
\begin {align*} \int \frac {(d+i c d x)^3 \left (a+b \tan ^{-1}(c x)\right )}{x^6} \, dx &=-\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}-(b c) \int \frac {d^3 (-4 i-c x) (1+i c x)^3}{20 x^5 (i+c x)} \, dx\\ &=-\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}-\frac {1}{20} \left (b c d^3\right ) \int \frac {(-4 i-c x) (1+i c x)^3}{x^5 (i+c x)} \, dx\\ &=-\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}-\frac {1}{20} \left (b c d^3\right ) \int \left (-\frac {4}{x^5}-\frac {15 i c}{x^4}+\frac {24 c^2}{x^3}+\frac {25 i c^3}{x^2}-\frac {24 c^4}{x}+\frac {24 c^5}{i+c x}\right ) \, dx\\ &=-\frac {b c d^3}{20 x^4}-\frac {i b c^2 d^3}{4 x^3}+\frac {3 b c^3 d^3}{5 x^2}+\frac {5 i b c^4 d^3}{4 x}-\frac {d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{5 x^5}+\frac {i c d^3 (1+i c x)^4 \left (a+b \tan ^{-1}(c x)\right )}{20 x^4}+\frac {6}{5} b c^5 d^3 \log (x)-\frac {6}{5} b c^5 d^3 \log (i+c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.11, size = 185, normalized size = 1.23 \[ \frac {d^3 \left (10 i a c^3 x^3+20 a c^2 x^2-15 i a c x-4 a+24 b c^5 x^5 \log (x)+12 b c^3 x^3+10 i b c^3 x^3 \tan ^{-1}(c x)-5 i b c^2 x^2 \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-c^2 x^2\right )+20 b c^2 x^2 \tan ^{-1}(c x)-12 b c^5 x^5 \log \left (c^2 x^2+1\right )+10 i b c^4 x^4 \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-c^2 x^2\right )-b c x-15 i b c x \tan ^{-1}(c x)-4 b \tan ^{-1}(c x)\right )}{20 x^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 185, normalized size = 1.23 \[ \frac {48 \, b c^{5} d^{3} x^{5} \log \relax (x) - 49 \, b c^{5} d^{3} x^{5} \log \left (\frac {c x + i}{c}\right ) + b c^{5} d^{3} x^{5} \log \left (\frac {c x - i}{c}\right ) + 50 i \, b c^{4} d^{3} x^{4} + {\left (20 i \, a + 24 \, b\right )} c^{3} d^{3} x^{3} + 10 \, {\left (4 \, a - i \, b\right )} c^{2} d^{3} x^{2} + {\left (-30 i \, a - 2 \, b\right )} c d^{3} x - 8 \, a d^{3} - {\left (10 \, b c^{3} d^{3} x^{3} - 20 i \, b c^{2} d^{3} x^{2} - 15 \, b c d^{3} x + 4 i \, b d^{3}\right )} \log \left (-\frac {c x + i}{c x - i}\right )}{40 \, x^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 200, normalized size = 1.33 \[ \frac {c^{2} d^{3} a}{x^{3}}-\frac {3 i c \,d^{3} a}{4 x^{4}}-\frac {d^{3} a}{5 x^{5}}+\frac {i c^{3} d^{3} a}{2 x^{2}}+\frac {c^{2} d^{3} b \arctan \left (c x \right )}{x^{3}}-\frac {3 i c \,d^{3} b \arctan \left (c x \right )}{4 x^{4}}-\frac {d^{3} b \arctan \left (c x \right )}{5 x^{5}}+\frac {i c^{3} d^{3} b \arctan \left (c x \right )}{2 x^{2}}-\frac {i b \,c^{2} d^{3}}{4 x^{3}}+\frac {5 i b \,c^{4} d^{3}}{4 x}-\frac {b c \,d^{3}}{20 x^{4}}+\frac {3 b \,c^{3} d^{3}}{5 x^{2}}+\frac {6 c^{5} d^{3} b \ln \left (c x \right )}{5}-\frac {3 c^{5} d^{3} b \ln \left (c^{2} x^{2}+1\right )}{5}+\frac {5 i c^{5} d^{3} b \arctan \left (c x \right )}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 224, normalized size = 1.49 \[ \frac {1}{2} i \, {\left ({\left (c \arctan \left (c x\right ) + \frac {1}{x}\right )} c + \frac {\arctan \left (c x\right )}{x^{2}}\right )} b c^{3} d^{3} - \frac {1}{2} \, {\left ({\left (c^{2} \log \left (c^{2} x^{2} + 1\right ) - c^{2} \log \left (x^{2}\right ) - \frac {1}{x^{2}}\right )} c - \frac {2 \, \arctan \left (c x\right )}{x^{3}}\right )} b c^{2} d^{3} + \frac {1}{4} i \, {\left ({\left (3 \, c^{3} \arctan \left (c x\right ) + \frac {3 \, c^{2} x^{2} - 1}{x^{3}}\right )} c - \frac {3 \, \arctan \left (c x\right )}{x^{4}}\right )} b c d^{3} - \frac {1}{20} \, {\left ({\left (2 \, c^{4} \log \left (c^{2} x^{2} + 1\right ) - 2 \, c^{4} \log \left (x^{2}\right ) - \frac {2 \, c^{2} x^{2} - 1}{x^{4}}\right )} c + \frac {4 \, \arctan \left (c x\right )}{x^{5}}\right )} b d^{3} + \frac {i \, a c^{3} d^{3}}{2 \, x^{2}} + \frac {a c^{2} d^{3}}{x^{3}} - \frac {3 i \, a c d^{3}}{4 \, x^{4}} - \frac {a d^{3}}{5 \, x^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.95, size = 174, normalized size = 1.16 \[ \frac {d^3\,\left (24\,b\,c^5\,\ln \relax (x)-12\,b\,c^5\,\ln \left (c^2\,x^2+1\right )+b\,c^4\,\mathrm {atan}\left (x\,\sqrt {c^2}\right )\,\sqrt {c^2}\,25{}\mathrm {i}\right )}{20}+\frac {-\frac {d^3\,\left (4\,a+4\,b\,\mathrm {atan}\left (c\,x\right )\right )}{20}-\frac {d^3\,x\,\left (a\,c\,15{}\mathrm {i}+b\,c+b\,c\,\mathrm {atan}\left (c\,x\right )\,15{}\mathrm {i}\right )}{20}+\frac {d^3\,x^3\,\left (a\,c^3\,10{}\mathrm {i}+12\,b\,c^3+b\,c^3\,\mathrm {atan}\left (c\,x\right )\,10{}\mathrm {i}\right )}{20}+\frac {d^3\,x^2\,\left (20\,a\,c^2+20\,b\,c^2\,\mathrm {atan}\left (c\,x\right )-b\,c^2\,5{}\mathrm {i}\right )}{20}+\frac {b\,c^4\,d^3\,x^4\,5{}\mathrm {i}}{4}}{x^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 48.02, size = 326, normalized size = 2.17 \[ \frac {6 b c^{5} d^{3} \log {\left (113975 b^{2} c^{11} d^{6} x \right )}}{5} + \frac {b c^{5} d^{3} \log {\left (113975 b^{2} c^{11} d^{6} x - 113975 i b^{2} c^{10} d^{6} \right )}}{40} - \frac {49 b c^{5} d^{3} \log {\left (113975 b^{2} c^{11} d^{6} x + 113975 i b^{2} c^{10} d^{6} \right )}}{40} + \frac {\left (- 10 b c^{3} d^{3} x^{3} + 20 i b c^{2} d^{3} x^{2} + 15 b c d^{3} x - 4 i b d^{3}\right ) \log {\left (- i c x + 1 \right )}}{40 x^{5}} + \frac {\left (10 b c^{3} d^{3} x^{3} - 20 i b c^{2} d^{3} x^{2} - 15 b c d^{3} x + 4 i b d^{3}\right ) \log {\left (i c x + 1 \right )}}{40 x^{5}} - \frac {4 a d^{3} - 25 i b c^{4} d^{3} x^{4} + x^{3} \left (- 10 i a c^{3} d^{3} - 12 b c^{3} d^{3}\right ) + x^{2} \left (- 20 a c^{2} d^{3} + 5 i b c^{2} d^{3}\right ) + x \left (15 i a c d^{3} + b c d^{3}\right )}{20 x^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________